Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
nuke-image
Advanced tools
基础组件,用于展示图片。
** 注意,在 native 端,图片必须声明宽高, 或通过 flex:1 等方式具备宽高,才能绘制,否则无法展现。**
属性配置 | 说明 | 类型 | 默认值 |
---|---|---|---|
src | 新增,与 source api 含义相同 | string | |
style | 必须写宽高,或通过 flex:1 等能力具备宽高占位,否则无法渲染 | object | |
resizeMode | 组件尺寸和图片尺寸不成比例的时候如何调整图片的大小 | 枚举类型,可选 contain cover stretch | stretch |
onLoad | 图片 onLoad 方法,其中 e.size 可返回图片真实宽高 | function(e) |
src
图片 url
<Image
src="https://via.placeholder.com/350x150"
style={{ width: 350, height: 150 }}
/>
例:
<View style={{ width: 600, height: 400 }}>
<Image
style={{ flex: 1 }}
src="https://gd2.alicdn.com/imgextra/i2/413996455/TB2tNcJbd0opuFjSZFxXXaDNVXa_!!413996455.jpg"
/>
</View>
FAQs
The npm package nuke-image receives a total of 10 weekly downloads. As such, nuke-image popularity was classified as not popular.
We found that nuke-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.